Skip to content

feat: add contract stream expiry and reclaim - #914

Open
kosisochukwu1234 wants to merge 1 commit into
ritik4ever:mainfrom
kosisochukwu1234:feature/stream-expiry
Open

feat: add contract stream expiry and reclaim#914
kosisochukwu1234 wants to merge 1 commit into
ritik4ever:mainfrom
kosisochukwu1234:feature/stream-expiry

Conversation

@kosisochukwu1234

Copy link
Copy Markdown

Closes #682

Resolves stream expiry issue by introducing a configurable grace period and reclaim mechanism for senders.

Changes Included:

  • Configurable Grace Period: Added set_grace_period and get_grace_period admin functions, utilizing DataKey::GracePeriod (defaulting to 30 days).
  • Stream Expiry Checking: Added a check_and_expire internal helper that enforces auto-expiry once the stream passes its end time plus the grace period.
  • Event Emission: A StreamExpired event is now automatically emitted the first time an expired stream is queried or interacted with (e.g., via claimable, get_stream, or claim).
  • Sender Reclaim: Implemented reclaim_expired for the sender to withdraw the unclaimed vested balance after the grace period ends. The recipient retains their ability to claim their vested amount during the grace period, but is blocked after expiry.

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@kosisochukwu1234 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

@kosisochukwu1234 is attempting to deploy a commit to the ritik4ever's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Aug 29, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7a40aa82-484f-4811-9af7-c29bf5d9f0ae


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add contract stream expiry (auto-cancel after grace period)

1 participant